Get Event Logs by Address and/or Topic(s)
GEThttps://api.fuse.io/api/v0/explorer/?module=logs&action=getLogs
Get Event Logs by Address and/or Topic(s)
Request
Query Parameters
module stringrequired
Possible values: [logs
]
action stringrequired
Possible values: [getLogs
]
fromBlock integerrequired
toBlock integerrequired
address stringrequired
topic0 stringrequired
topic1 string
topic2 string
topic3 string
topic0_1_opr string
Possible values: [and
, or
]
topic0_2_opr string
Possible values: [and
, or
]
topic0_3_opr string
Possible values: [and
, or
]
topic1_2_opr string
Possible values: [and
, or
]
topic1_3_opr string
Possible values: [and
, or
]
topic2_3_opr string
Possible values: [and
, or
]
apiKey stringrequired
Example: pk_1234567890
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
Schema
message string
result object[]
status string
{
"message": "string",
"result": [
{
"address": "string",
"blockNumber": "string",
"data": "string",
"gasPrice": "string",
"gasUsed": "string",
"logIndex": "string",
"timeStamp": "string",
"topics": [
"string"
],
"transactionHash": "string",
"transactionIndex": "string"
}
],
"status": "string"
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X GET 'https://api.fuse.io/api/v0/explorer' \
-H 'Accept: application/json'
ResponseClear